import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import local_get from '@dfeidao/atom-web/local/get';
import fire_to from '@dfeidao/atom-web/msg/fire';

// 点击新增跳转选择控制点窗口
export default async function a005(fd: IFeidaoAiBrowserComponent) {
	const package_no = local_get(fd, "package_no");
	const data = local_get(fd, "data") as Array<{ code: string }>;
	const codes = new Array();
	if (data) {
		Array.from(data).forEach((a) => {
			codes.push(Number(a.code));
		});
	}
	fire_to('zj-000005', 'a001', { package_no, codes, sort: "group" });
}
